// 此文件用于获取商品列表数据
import request from '@/utils/request'

export default {

    getGoodsList() {
        return request.get<any, any>(`/wyyx/item/cateList.json`)
    },
    getSecondGoodsList(id: number) {
        return request.get<any, any>(`/wyyx/item/cateList.json?__timestamp=1630131455012&categoryId=${id}`)
    },
    getGoodsDetailList(subCategoryId: any, categoryId: any) {
        return request.get<any, any>(`/wyyx/item/list.json?__timestamp=1630133942864&categoryType=0&subCategoryId=${subCategoryId}&categoryId=${categoryId}`)
    }
}